<template>
  <el-config-provider :locale="locale">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup>
import { ref, onMounted } from 'vue';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';

import { useGlobalStore } from '@/pinia/modules/global';
const globalStore = useGlobalStore();

const locale = ref(zhCn);

onMounted(() => {
  globalStore.setDeviceType();
});
</script>

<style></style>
